# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-evtx
_pkgname=python-evtx
pkgver=0.7.4
pkgrel=7
pkgdesc="Pure Python3 parser for recent Windows Event Log files (.evtx)"
url="https://github.com/williballenthin/python-evtx"
arch="noarch !s390x" # most of the tests failing
license="Apache-2.0"
depends="python3 py3-six py3-hexdump"
makedepends="py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-parsing py3-lxml"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/williballenthin/python-evtx/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
8fd6f7f99b5d0db20f41f6fe055713f6e8d13e52525363063ccb246424ee793d4a97690b76931125471ac6c79ef2fedbf81f4a623c8addf45838c7354ecf1db3  py3-evtx-0.7.4.tar.gz
"
